export default [
  // 登录
  {
    path: '/login',
    component: '../layouts/Login',
    routes: [
      {
        path: '/login',
        component: './login',
        title: "登录后台系统"
      },
    ],
  },
  //后台
  {
    path: '/',
    component: '../layouts/Index',
    routes: [
      { path: '/', redirect: "/dashboard" },
      {
        path: '/dashboard',
        component: './dashboard',
        title: "仪表盘"
      },
      {
        path: '/admins',
        title: "管理员管理",
        hideChildrenInMenu: true,
        routes: [
          {
            path: '/admins',
            component: './admins/index',
            title: "管理员管理"
          },
          {
            path: '/admins/permissions',
            component: './admins/permissions',
            title: "权限管理"
          },
          {
            path: '/admins/roles',
            component: './admins/roles',
            title: "角色管理管理"
          },
        ]
      },
    ],
  },
]